<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
	  <title>菜单列表</title>	
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />      
      <link href="../../js/thickbox.css" rel="stylesheet" type="text/css" />
      <script src="../../js/jqui/jquery-1.2.6.min.js" type="text/javascript"></script>
      <script src="../../js/jqtool.js" type="text/javascript"></script>
      <script src="../../js/ui.js" type="text/javascript"></script>
      <script src="../../js/thickbox-compressed.js" type="text/javascript"></script>
      <link href="../../css/Public.css"type="text/css" rel="stylesheet" />
      <link href="../../css/PublicEdit.css"type="text/css" rel="stylesheet" />        
	  <link rel="StyleSheet" href="../../css/dtree.css" type="text/css" />
	  <link rel="StyleSheet" href="../../css/Left.css" type="text/css" />
	  <script type="text/javascript" src="../../js/dtree.js"></script>
	  <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	font-size: 12px;
	color: #FFFFFF;
}
.STYLE3 {
	font-size: 12px;
	color: #033d61;
}
-->
</style>
<style type="text/css">
.menu_title SPAN {
	FONT-WEIGHT: bold; LEFT: 3px; COLOR: #ffffff; POSITION: relative; TOP: 2px 
}
.menu_title2 SPAN {
	FONT-WEIGHT: bold; LEFT: 3px; COLOR: #FFCC00; POSITION: relative; TOP: 2px
}

</style>
<script>
var he=document.body.clientHeight-105
document.write("<div id=tt style=height:"+he+";overflow:hidden>")
</script>
<script>




function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
imgmenu = eval("imgmenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
imgmenu.background="../../images/main_47.gif";
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
imgmenu.background="../../images/main_48.gif";
}
}

</script>


</head>
<body>						   


<table width="171" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="28" background="../../images/main_40.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="19%">&nbsp;</td>
        <td width="81%" height="20"><span class="STYLE1">管理菜单</span></td>
      </tr>
    </table></td>
  </tr>
  <tr valign="top">
    <td>  
	<div class="dtree">	
	<script type="text/javascript" >	
			d = new dTree('d');
			d.add(0,-1,'管理菜单');			
			         var menuall="${MenuRes}";
			         var menulist=menuall.split('@');
			         var no,pno,hrefurl,showname;
			         for(var i=0;i<menulist.length;i++)
			         {
			         	var menudetail=menulist[i];			         
			         	if(menudetail.length>0)
			         	{
			         		var show="";
			         		var roteDetail=menudetail.split(',');
			         		 no=roteDetail[0];
			         		 pno=roteDetail[1];
			         		 hrefurl=roteDetail[2];
			         		 showname=roteDetail[3];
			         		 if(hrefurl.length>1)
			         		 { show="<a target=main  href="+hrefurl+" >"+showname+"</a>";}
			         		 else
			         		 {
			         			  show="<a target=main >"+showname+"</a>";
			         		 }
			         		 d.add(no,pno,show,hrefurl);	
			         	}			         	
			         }				  
    		  document.write(d);
    	
	</script>
	</div>
</td>
  </tr> 
 
</table>

</body>
</html>